import {ParamsType} from "@ant-design/pro-components";
import {addData, deleteById, pageData, updateById} from "@/services/base-request";

export const pageCoachAPI = (params: ParamsType) => {
  return pageData("/coach", params)
}

export const addCoachAPI = (data: API.ICoach) => {
  return addData("/coach", data)
}

export const updateCoachAPI = (data: API.ICoach) => {
  return updateById("/coach", data)
}

export const deleteCoachAPI = (id: string | number) => {
  return deleteById("/coach", id)
}
